package com.vizhuo.base.dao.page;

import org.apache.commons.lang.StringUtils;
import org.apache.ibatis.session.RowBounds;

public class MyRowBounds extends RowBounds
{

	private String sidx; // 排序参数

	private String sord; // asc or desc

	public MyRowBounds(int offset, int limit)
	{

		super(offset, limit);

	}

	public MyRowBounds(int offset, int limit, String sidx, String sord)
	{

		super(offset, limit);

		if(StringUtils.isNotEmpty(sidx))
		{

			this.sidx = sidx;

			this.sord = sord;

		}

	}

	public String getSidx()
	{

		return sidx;

	}

	public void setSidx(String sidx)
	{

		this.sidx = sidx;

	}

	public String getSord()
	{

		return sord;

	}

	public void setSord(String sord)
	{

		this.sord = sord;

	}

}
